home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PsL Monthly 1993 December
/
PSL Monthly Shareware CD-ROM (December 1993).iso
/
prgmming
/
dos
/
c
/
mplus_1.exe
/
MPORIGIN.C
< prev
next >
Wrap
C/C++ Source or Header
|
1991-12-01
|
2KB
|
57 lines
/*--------------------------------------------------------------
* File: MPORIGIN.C
* Description: To give MSC 6.0 compatibility without
* having to rebuild the MPLUS system. Primarily
* for non-registered users who do not have access
* to source code.
*
* Developed for the MPLUS Graphic Interface Library
* Copyright 1989, 1990 by Michael Yam.
* All rights reserved.
*-------------------------------------------------------------*/
#include <graph.h>
#undef _setlogorg /* defined in graph.h */
#undef _getlogcoord
/*--------------------------------------------------------------
* Function: _setlogorg
* Description: MSC 6.0 renamed this function to _setvieworg,
* producing an unresolved external when linking
* with MPLUS (which calls _setlogorg). This
* is just a "wrapper" to make MPLUS aware of
* of _setvieworg.
*
* If you have source code, you don't need this.
* Just "remake" the system using MSC 6.0.
* Return value: struct xycoord
*--------------------------------------------------------------*/
struct xycoord _far _cdecl _setlogorg(x,y)
short x,y;
{
return _setvieworg (x,y);
}
/*--------------------------------------------------------------
* Function: _getlogcoord
* Description: MSC 6.0 renamed this function to _getvieworg,
* producing an unresolved external when linking
* with MPLUS (which calls _getlogcoord).
*
* If you have source code, you don't need this.
* Just "remake" the system using MSC 6.0.
* Return value: struct xycoord
*--------------------------------------------------------------*/
struct xycoord _far _cdecl _getlogcoord (x,y)
short x,y;
{
return _getviewcoord(x,y);
}
/*--------------------------------------------------------------*
* End of MPORIGIN.C *
*--------------------------------------------------------------*/